namespace KanbanBoard.Tests.ApplicationSetup
{
    using Core;

    /// <summary>
    /// User data part
    /// </summary>
    public class UserDataPart : DataPartBase, IDataPart
    {
        public void AddToDatabase()
        {
            this.InsertUser();
        }

        private void InsertUser()
        {
            var admin = new User
                { LoginName = "admin", Password = "secret", FirstName = "Mark", Surname = "Nanu", Gender = Gender.Male };
            this.SaveData(admin);
        }
    }
}